<!-- Sidebar -->
<ul class="navbar-nav sidebar sidebar-dark accordion" id="accordionSidebar">

	<!-- Sidebar - Brand -->
	<a class="sidebar-brand d-flex align-items-center justify-content-center" href="{$dashboardPageUrl}">
		<div class="sidebar-brand-icon rotate-n-15">
			<i class="iconfontzz icon-kuaisushengjix"></i>
		</div>
		<div class="sidebar-brand-text mx-3">dancePHP</div>
	</a>
	
	<!-- Divider -->
	<hr class="sidebar-divider my-0">

	<!-- Nav Item - Dashboard -->
	<li class="nav-item">
		<a class="nav-link" href="{$dashboardPageUrl}">
			<i class="iconfontzz icon-kongzhitai"></i>
			<span>控制台</span>
		</a>
		<span class="daui-nav-bar"></span>
	</li>
	
	<!-- Divider -->
	<hr class="sidebar-divider">

	<!-- Heading -->
	<div class="sidebar-heading">
		{$voCate['name']}
	</div>
	{volist name="sideBarMenuCate" id="voMenu"}
	<?php
		//print_r($voMenu);exit;
		if ($voMenu['url']) {
			$url = $vo2['url'];
			$right = '';
			$liClass = '';
		} else {
			$url = 'javascript:;';
			$right = '<span class="pull-right-container"><i class="fa fa-angle-left pull-right"></i></span>';
			$liClass = 'treeview menu-open';
		}
		//if ($voMenu['current'] == 1) {
		//	$navMenu = '';
		//	$submenuShow = 'show';
		//} else {
		//	$navMenu = 'collapsed';
		//	$submenuShow = '';
		//}
		$navMenu = '';
		$submenuShow = 'show';
	?>
	<!-- Nav Item - Pages Collapse Menu -->
	<li class="nav-item">
		<a class="nav-link {$navMenu}" href="#" data-toggle="collapse" data-target="#menu_{$voMenu['id']}" aria-expanded="true" aria-controls="menu_{$voMenu['id']}">
			<i class="iconfontzz icon-menu-shu"></i>
			<span>{$voMenu['name']}</span>
		</a>
		<div id="menu_{$voMenu['id']}" class="collapse {$submenuShow}" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
			<div class="collapse-inner">
				{volist name="voMenu['subs']" id="voSub"}
				<?php
					if ($voSub['sideFlag'] == $sideFlag) {
						$subActive = 'active';
					} else {
						$subActive = '';
					}
					if ($wid) {
						$voSub['url'] = $voSub['url'].'/wid/'.$wid;
					}
				?>
				<a class="collapse-item {$subActive}" href="{$voSub['url']}">{$voSub['name']}</a>
				{/volist}
			</div>
		</div>
		<span class="daui-nav-bar"></span>
	</li>
	{/volist}

	<!-- Divider -->
	<hr class="sidebar-divider d-none d-md-block">

</ul>
<!-- End of Sidebar -->